<?php

namespace app\merchant\model;

use think\admin\Model;
use think\admin\model\SystemUser;


/**
 * 商户模型
 * @class Merchant
 * @package app\merchant\model
 */
class MerchantModel extends Model
{
    protected $name = 'merchant';

    /**
     * 关联后台账号
     */
    public function systemUser(){
        return $this->belongsTo(SystemUser::class, 'system_user_id', 'id')->field('id,username');
    }
}
